{include file = 'header.tpl'}
<h2>你可以上传slider</h2>
<form name="form1" id="form1" action="{$baseUrl}slider/add" method="post">
<table>
    <tr>
        <td>slider名字</td>
        <td><input type="text" name="title"></td>
    </tr>
    <tr>
        <td>slider链接</td>
        <td><input type="text" name="url"></td>
    </tr>
        <td>slider图片</td>
        <td>
            <input type="hidden" name="slider" id="slider"  value="{$slider}">
            <span style="color:red;" id="slider_tip">未上传logo</span>
            <span class="gray">* 在下面单位文件框中上传图片。上传后拖动高亮框，双击裁剪图片</span>
        </td>
    </tr>
</table>
</form>
<hr>
<p>上传商店ico图片</p>
    <form action="{$baseUrl}photo/upPic?callback=slider&scaleX=70" enctype="multipart/form-data" method="post" target='pic' >
    <input  name='file[]' type='file'></input>
    <input type='submit' value='上传' />
</form>

<iframe name='pic' style='display:none;'> </iframe>
<div id='slider_pic'>
<img src="{$slider}" />
</div>
<input id="baseUrl" type="hidden" value="{$baseUrl}" />
<input id="save" type="button" style="margin:10px;width:100px;height:30px;" value="保存"></input>

{include file = 'footer.tpl'}
